﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


using OneTwoTeam.EasyScrum.DAL;

namespace OneTwoTeam.EasyScrum.ConsoleUI
{
    class Program
    {
        static void Main(string[] args)
        {
            //using (var context = new easyscrumEntities())
            //{
            //    var query = context.user.ToList();

            //    foreach (var user in query)
            //    {
            //        Console.WriteLine(  user.username);
            //    }
            //}

            foreach (var user in DatabaseFacade.GetUserForId(1))
            {
                Console.WriteLine(user.username);
            }


            foreach (var role in DatabaseFacade.GetRoleByLibelle("Developper"))
            {
                Console.WriteLine(role.libelle);
            }

            //role roleDev = DatabaseFacade.GetRoleByLibelle("Developper").First();

            //foreach (var user in DatabaseFacade.GetUsersByRole(roleDev))
            //{
            //    Console.WriteLine(user.username);
            //}
        }
    }
}
